/**
 * 
 */
package com.sip.comserver.communication.utils;

import com.thoughtworks.xstream.XStream;

/**
 * @author Dhanushka Ariyasingha
 */
public class SimulatorUtills {

    public static String convertObjectToXML(final Object object) {

        final XStream xstream = new XStream();

        final String xml = xstream.toXML(object);

        return xml;
    }

    public static Object convertXMLToObject(final String xml) {

        final XStream xstream = new XStream();

        final Object obj = xstream.fromXML(xml);

        return obj;
    }
}
